<?php
namespace App\Controllers\Expand;

use App\Models\Expand\ExpandIncome;

/**
*	推广--我的收益数据
*/

class Expand_income extends \App\Controllers\Common\Base
{
	
	public function execute(){
		$uid = 1;
		$info = ExpandIncome::findAll( array(
			'uid = '.$uid,
			'limit'=>array('number'=>$this->size,'offset'=> $this->offset )
		) )->toArray();
		if( empty( $info ) ){
			 return \App\Libs\Views\Json::view(0, '成功', []);
		}else{
			 return \App\Libs\Views\Json::view(0, '成功', $info);
		}
		
       
    }

}
